/* ========== 基础重置样式（导航/页脚依赖，必须保留） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 强制全局使用首页定义的字体，防止被 style.css 覆盖 */
    font-family: 'Open Sans', "Microsoft YaHei", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    /* 修复可能被 style.css 重置的 margin/padding */
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 标题导航栏核心样式 ========== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    /* 强制行高，防止受 style.css 影响 */
    line-height: 1.6; 
}

/* 强制 header 内部所有元素字体，优先级高于 style.css 的通用选择器 */
header h1, header h2, header h3, header h4, header h5, header h6, header p, header a {
    font-family: 'Open Sans', "Microsoft YaHei", sans-serif !important;
}

.nav-container {
    display: flex;
    /* 恢复与首页一致的两端对齐 */
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo {
    height: 60px;
}

nav {
    /* 移除 margin-left: auto，恢复首页的默认布局逻辑 */
    /* margin-left: auto; */
}

nav ul {
    display: flex;
}

nav ul li {
    padding: 10px 15px;
}

nav ul li a {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s;
    /* 确保颜色不受 style.css 链接样式干扰 */
    color: #333; 
}

nav ul li a:hover {
    color: #007bff;
}

/* ========== 新增：顶部热线电话样式 ========== */
.hotline-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    height: 40px;
}

.hotline-title {
    font-size: 14px;
    color: #888;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hotline-number {
    font-size: 18px;
    font-weight: 800;
    color: #007bff;
    line-height: 1;
    font-family: 'Arial', sans-serif !important; /* 强制数字字体 */
    letter-spacing: 0.5px;
}

/* 响应式处理 */
@media (max-width: 992px) {
    .hotline-box {
        display: none;
    }
}

/* ========== 导航栏二级下拉菜单 ========== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 270px;
    z-index: 200; /* 提高层级 */
    text-align: left; /* 强制左对齐，防止继承 center */
}

.dropdown-menu li {
    padding: 10px 15px;
    border-bottom: none; /* 防止继承边框 */
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ========== 导航栏三级菜单 ========== */
.dropdown-menu li {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    min-width: 200px;
}

.dropdown-menu li:hover > .submenu {
    display: block;
}

.submenu li {
    padding: 10px 15px;
    background-color: #fff;
}
.submenu li:hover {
    background-color: #f0f0f0;
}

.has-submenu > a::after {
    content: " ▸";
    float: right;
    margin-left: 5px;
}

/* ========== 导航栏隐藏/显示过渡样式 ========== */
.hidden {
    transform: translateY(-100%);
}

/* ========== 导航栏额外小样式 ========== */
.xlkzt {
    font-size: 12px; 
}

/* ========== 页脚核心样式 ========== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 20px 20px;
    /* 恢复首页的行高 */
    line-height: 1.6;
}

/* 强制页脚内部字体和重置 */
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6, .footer p, .footer a, .footer li {
    font-family: 'Open Sans', "Microsoft YaHei", sans-serif !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-left, .footer-right {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff !important; /* 强制白色，防止被 style.css h4 颜色覆盖 */
    font-weight: 700;
}

.footer-text {
    font-size: 14px;
    color: #bbb !important; /* 强制浅灰 */
    margin-bottom: 20px;
    /* 覆盖 style.css 中 p 标签的 28px 行高 */
    line-height: 1.6 !important; 
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links li {
    margin-bottom: 10px;
    /* 防止继承 style.css 的边框或 padding */
    border: none;
    padding: 0;
}

.footer-links a {
    color: #bbb !important;
    transition: color 0.3s;
    font-size: 14px;
    font-weight: normal;
}

.footer-links a:hover {
    color: #fff !important;
}

.footer-bottom-text {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #bbb !important;
    line-height: 1.6 !important;
}